#include "thread.hpp"

struct Data
{
  int Max;
  int Min;
};

void Count(struct Data d)
{
  for (int i = 0; i < d.Max; i++)
  {
    std::cout << i << std::endl;
    sleep(1);
  }
}
int main()
{
  struct Data m = {10, 0};

  mythread::thread<struct Data> t(Count, m);
  t.start();
  std::cout<<"Thread name: "<<t.name()<<std::endl;

  sleep(10);

  t.join();
  return 0;
}